package com.veng.springbootdemo.rabbit;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "topic.second")
public class TopicRabbitReceiver2 {

    @RabbitHandler
    public void process(String message){
        System.out.println("I am Receiver2:"+message);
    }
}
